package cn.minimelon.api.domain.enums;

import lombok.Getter;

/**
 * 开关、是否、启停枚举
 */
public enum SwTypeEnum {
    YES(1,"1", "是", "开"),
    NO(0,"0", "否", "关");

    private final int code;
    private final String val;
    @Getter
    private final String name;
    private final String desc;

    public int code() {
        return this.code;
    }

    public String val() {
        return this.val;
    }

    public String desc() {
        return this.desc;
    }

    SwTypeEnum(int code, String val, String name, String desc) {
        this.code = code;
        this.val = val;
        this.name = name;
        this.desc = desc;
    }
}
